/**
 * 群发消息列表
 * @authors 杨兴洲（of2502）
 * @date    2017/4/7 15:30
 * @version 1.0
 */
import {model, Schema} from "mongoose";
const MassSendSchema = new Schema({
    userID: {"type": String, "required": true},
    msgID: {"type": String, "required": true},
    msgtype: {"type": String, "required": true},
    text: {
        content: String
    },
    image: {
        media_id: String
    },
    voice: {
        media_id: String
    },
    mpnews: {
        media_id: String
    },
    mpvideo: {
        media_id: String,
        title: String,
        description: String
    },
    wxcard: {
        card_id: String
    }
});

MassSendSchema.index({userID: 1, msgID: 1, msgtype: 1});

export default model('MassSend', MassSendSchema);
